local qunxian3__baishoukaiduo_leimingbagua = fk.CreateSkill {

  name = "qunxian3__baishoukaiduo_leimingbagua",

  tags = {},

}

Fk:loadTranslationTable {
  ["qunxian3__baishoukaiduo_leimingbagua"] = "雷鸣八卦",
  [":qunxian3__baishoukaiduo_leimingbagua"] = [[一名角色回合开始时，你可对一名其他角色造成X点雷属性伤害。（X为【最强生物】己发动次数＋1）]],
  ["#qunxian3__baishoukaiduo_leimingbagua-choose_player"] = "雷鸣八卦：请选择1名其他角色对其造成%arg点雷电伤害 ",
  ["$qunxian3__baishoukaiduo_leimingbagua"] = "雷鸣八卦",
}

qunxian3__baishoukaiduo_leimingbagua:addEffect(fk.TurnStart, {
  anim_type = "offensive",
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(qunxian3__baishoukaiduo_leimingbagua.name)
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    local x = player:usedSkillTimes("qunxian3__baishoukaiduo_zuiqiangshengwu", Player.HistoryGame) + 1
    local target_p = room:askToChoosePlayers(player, {
      targets = room:getOtherPlayers(player),
      skill_name = "qunxian3__baishoukaiduo_leimingbagua",
      prompt = "#qunxian3__baishoukaiduo_leimingbagua-choose_player:::" .. x,
      max_num = 1,
      min_num = 1,
      cancelable = true
    })
    if #target_p == 0 then return end
    room:damage({
      from = player,
      to = target_p[1],
      damage = x,
      damageType = fk.ThunderDamage,
      skillName = "qunxian3__baishoukaiduo_leimingbagua"
    })
  end
})




return qunxian3__baishoukaiduo_leimingbagua
